import request from '@/utils/request'
export default {

    // 查询所有评论分页数据
    queryAllCommentPage(courseId, current, limit, token) {
        return request({
            url: `/eduservice/commentfront/queryAllCommentPage/${courseId}/${current}/${limit}`,
            method: 'get'
        })
    },

    // 添加评论
    insertComment(comment) {
        return request({
            url: `/eduservice/commentfront/insertComment`,
            method: 'post',
            data: comment
        })
    }
}